Draft
Conversation
…stem, and CLI commands Agent-Logs-Url: https://github.com/github/spec-kit/sessions/72a7bb5d-071f-4d67-a507-7e1abae2384d Co-authored-by: mnriem <15701806+mnriem@users.noreply.github.com>
Agent-Logs-Url: https://github.com/github/spec-kit/sessions/72a7bb5d-071f-4d67-a507-7e1abae2384d Co-authored-by: mnriem <15701806+mnriem@users.noreply.github.com>
…me validation Agent-Logs-Url: https://github.com/github/spec-kit/sessions/72a7bb5d-071f-4d67-a507-7e1abae2384d Co-authored-by: mnriem <15701806+mnriem@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add workflow engine with catalog system to Specify CLI
Add workflow engine with catalog system
Apr 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a workflow subsystem to Specify CLI for defining multi-step, resumable automation workflows in YAML. The engine dispatches commands to CLI-based integrations, evaluates control flow, and pauses at human review gates. Ships with a catalog system mirroring the existing extension/preset catalog pattern.
Workflow engine core (
src/specify_cli/workflows/)base.py—StepBaseabstract class,StepContext,StepResult, status enums__init__.py—STEP_REGISTRYwith auto-discovery, mirrorsINTEGRATION_REGISTRYexpressions.py— Sandboxed Jinja2-subset evaluator (variable interpolation, comparisons, boolean logic, filters likedefault,join,map,contains)engine.py—WorkflowDefinition(YAML loader),validate_workflow(),WorkflowEngine(sequential executor with recursive nested step support),RunState(JSON state persistence for resume)catalog.py—WorkflowCatalog(multi-catalog stack: env var → project → user → built-in),WorkflowRegistry(installed workflow tracking)9 built-in step types (
workflows/steps/)command,shell,gate,if(then/else),switch,while,do-while,fan-out,fan-in— each aStepBasesubclass in its own subpackage, same extensibility model as integrations.CLI commands
specify workflow run|resume|status|list|add|remove|search|infoplusspecify workflow catalog list|add|remove.Catalog files
workflows/catalog.json,workflows/catalog.community.json, and an exampleworkflows/speckit/workflow.yml(full SDD cycle).Example workflow definition
Tests
94 new tests covering step registry, expression engine, all step types, workflow validation, engine execution (including branching/gates/shell), state persistence, catalog resolution, and registry operations. Full suite passes (1334 total).